#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int n;
    scanf("%d", &n);
    if (n < 1 || n>10)
    {
        printf("Invalid.");
        exit(-1);
    }
    int a[10] = { 0 };
    int sum = 0;
    int i = 0;
    while (i < n) 
    {
        scanf("%d", &a[i]);
        sum += a[i];
        i++;
    }
    double average = (double)sum / n;
    printf("%.2f\n", average);
    for (i = 0; i < n; i++)
    {
        if (a[i] > average)
        {
            printf("%d ", a[i]);
        }
    }
    return 0;
}